package com.cskaoyan.controller;

import com.cskaoyan.bean.MarketFootprint;
import com.cskaoyan.bean.common.BasePageInfo;
import com.cskaoyan.bean.common.BaseRespVo;
import com.cskaoyan.bean.common.CommonData;
import com.cskaoyan.service.AdminFootprintService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author yi
 * @date 2022/10/13 17:52
 */
@RestController
@RequestMapping("admin/footprint")
public class AdminFootprintController {
    @Autowired
    AdminFootprintService adminFootprintService;

    @RequestMapping("list")
    public BaseRespVo list(Integer userId, Integer goodsId, BasePageInfo basePageInfo) {
        CommonData<MarketFootprint> data = adminFootprintService.queryFootprint(userId, goodsId, basePageInfo);
        return BaseRespVo.ok(data, "成功");
    }
}
